/* 页面组件通用样式 */
.page-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0; /* 允许内部滚动容器在Flex布局中收缩 */
}

.page-content {
  flex: 1;
  overflow: hidden;
  min-height: 0; /* 关键：让子级（如MusicList）可以垂直滚动 */
  display: flex;
  flex-direction: column;
}

.page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  text-align: center;
}

.page-placeholder h2 {
  font-size: 2em;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-placeholder p {
  font-size: 1.2em;
  opacity: 0.7;
}

/* 加载状态样式 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #888;
}

.loading-spinner {
  font-size: 2em;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.end-state {
  text-align: center;
  padding: 20px;
  color: #888;
  font-style: italic;
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #888;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  font-size: 1.5em;
  color: #666;
}

.empty-state p {
  margin: 0;
  font-size: 1em;
  opacity: 0.7;
}
